﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace xjjxmm.infrastructure.Middleware.RateLimit.RateLimit
{
    public class RateLimitAttribute : Attribute
    {
        /// <summary>
        /// 最大令牌数量
        /// </summary>
        public int? MaxPermit { get; set; }

        /// <summary>
        /// 每秒新增令牌数量
        /// </summary>
        public int? PermitRate { get; set; }
    }
}
